home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1998 June
/
SGI Freeware 1998 June.iso
/
dist
/
fw_UMINNgopher.idb
/
usr
/
freeware
/
src
/
gopher_1.12
/
gopher
/
HTML.h.z
/
HTML.h
Wrap
C/C++ Source or Header
|
1997-09-09
|
2KB
|
68 lines
/********************************************************************
* $Author: drich $
* $Revision: 1.1 $
* $Date: 1995/10/03 04:07:57 $
* $Source: /proj/freeware1.0/gopher1.12/src/gopher/RCS/HTML.h,v $
* $Status: $
*
* Paul Lindner, University of Minnesota CIS.
*
* Copyright 1991, 1992 by the Regents of the University of Minnesota
* see the file "Copyright" in the distribution for conditions of use.
*********************************************************************
* MODULE: HTML.h
* Header file for lame attempt at HTML
*********************************************************************
* Revision History:
* $Log: HTML.h,v $
* Revision 1.1 1995/10/03 04:07:57 drich
* gopher 1.2 check-in
*
* Revision 1.1 1992/12/10 23:32:16 lindner
* gopher 1.1 release
*
* Revision 1.1 1992/12/10 06:16:51 lindner
* Initial revision
*
*
*********************************************************************/
#include "GDgopherdir.h"
#include <stdio.h>
struct HTMLstruct {
GopherDirObj *Links;
int *Linklinenum; /** Line # of the link **/
int *Linklinepos; /** line position of the link **/
int Linkmaxsize; /** Size of Links arrays **/
FILE *Filehtml;
FILE *Filetxt;
String *Filehtmlname;
String *Filetxtname;
String *Title;
};
typedef struct HTMLstruct HTMLObj;
#define HTMLGetLink(a,b) (GDgetEntry(((a)->Links),(b))) /** Returns a GopherObj**/
#define HTMLGetLinepos(a,b) ((a)->Linklinepos[(b)])
#define HTMLGetNumLinks(a) (GDgetNumitems((a)->Links))
#define HTMLGetLinenum(a,b) ((a)->Linklinenum[(b)])
#define HTMLGetLinkMax(a) ((a)->Linkmaxsize)
#define HTMLSetLinepos(a,b,c) ((a)->Linklinepos[(b)] = (c))
#define HTMLSetLinenum(a,b,c) ((a)->Linklinenum[(b)] = (c))
/** procedures defined in HTML.c **/
HTMLObj *HTMLnew( /*size*/);
void HTMLInit();
void HTMLDestroy();
void HTMLgrow();
void HTMLaddLink();